<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex withdrawalDetail_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub withdrawalDetail_fd0_0'>
					<view class='flex align-center withdrawalDetail_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  withdrawalDetail_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex align-center'>
						<text class='withdrawalDetail_fd0_0_c1_c0'>提现明细</text>
					</view>
					<view class='flex align-center justify-end withdrawalDetail_fd0_0_c0'
						@tap.stop="popupShow1691659136577=true">
						<image class='withdrawalDetail_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"509.png"'>
						</image>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			
			<view class="loading_css" v-if="isShow">
				<u-loading size="36" color="#3090FF"></u-loading>
				<view>加载中</view>
			</view>
			
			<!---明细列表flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout withdrawalDetail_flex_1" v-else>
				<template v-for='(item,key0) in list'>
					<view class='flex align-center justify-between withdrawalDetail_fd1_0' :key='key0'>
						<view class='flex flex-direction align-stretch flex-sub withdrawalDetail_fd1_0_c0'>
							<view class='flex align-center'>
								<image class='withdrawalDetail_fd1_0_c0_c0_c0' mode="aspectFill" :src='item.thumb'></image>
								<text class='withdrawalDetail_fd1_0_c0_c0_c1'>提现到{{item.account_type == 'wx' ? '微信': '支付宝'}}</text>
							</view>
							<text class='withdrawalDetail_fd1_0_c0_c1'>{{item.show_time}}</text>
						</view>
						<view class='flex flex-direction align-center'>
							<view class='flex flex-wrap align-center withdrawalDetail_fd1_0_c1_c0'>
								<text>{{item.cash_fee}}</text>
							</view>
							<view class='flex align-center withdrawalDetail_fd1_0_c1_c1'>
								<text class='withdrawalDetail_fd1_0_c1_c1_c0'
									v-if="item.check_status=='1'">审核中</text>
								<text
									class='withdrawalDetail_fd1_0_c1_c1_c0_1'
									v-if="item.check_status=='2'">审核通过</text>
								<text
									class='withdrawalDetail_fd1_0_c1_c1_c0_1' v-if="item.check_status=='3'">审核驳回</text>
							</view>
						</view>
					</view>
				</template>
				<view class="loadmore" v-if="last_page > 1">
					<u-loadmore font-size="24" :status="status" :icon-type="iconType" :load-text="loadText" />
				</view>
				
			</view>
			<view class="noData" v-if="list.length == 0 && !isShow">
				<image :src='STATIC_URL+"no.png"'></image>
			</view>

			<!---明细列表flex布局结束-->
			<benben-popup v-model="popupShow1691659136577" :mask="true" :mask-close-able="true" mode='center'>
				<!---flex布局flex布局开始-->
				<view class="flex benben-flex-layout flex-wrap align-center">
					<benben-calendar-diy mode='range' year-arrow-color='#666666' month-arrow-color='#666666'
						start-text=' ' end-text=' ' active-bg-color='rgba(41,121,255,1)'
						range-bg-color='rgba(41,121,255,0.13)' :change-title='true' :change-year='true'
						:change-month='true' class='withdrawalDetail_fd2_0' @change="changeDate"
						:start-time.sync="start_time" :end-time.sync="end_time"></benben-calendar-diy>
				</view>

				<!---flex布局flex布局结束-->

			</benben-popup>


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},

		data() {
			return {
				"popupShow1691659136577": false,
				"start_time": "",
				"end_time": "",
				"dataMessage": [],
				
				"list": [],
				"page": 1,
				"is_pull": true,
				"last_page": 1,
				"status": 'loadmore',
				"iconType": 'flower',
				"loadText": {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '我也是有底线的'
				},
				"isShow": true,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getList();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		// 下拉刷新
		onPullDownRefresh() {
			this.page = 1;
			this.is_pull = true;
			this.isShow = true;
			this.getList();
		},
		// 上拉加载
		onReachBottom() {
			if (this.page >= this.last_page) return;
			this.status = 'loading';
			this.page++;
			setTimeout(() => {
		
				if (this.page >= this.last_page) this.status = 'nomore';
				else this.status = 'loading';
				this.is_pull = false;
				this.getList();
			}, 500)
		},
		onPageScroll(e) {

		},
		methods: {
			// 提现明细 post656f25c9f191a
			getList() {
				this.$api.post(global.apiUrls.post656f25c9f191a, {
					page: this.page,
					start_time: this.start_time,
					end_time: this.end_time
				}).then(res => {
					uni.stopPullDownRefresh();
					this.isShow = false;
					if (res.data.code == 1) {
						this.last_page = res.data.data.last_page;
						if (this.is_pull) {
							this.list = res.data.data.data;
						} else {
							this.list = this.list.concat(res.data.data.data);
						}
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},
			changeDate() {
				this.popupShow1691659136577 = false;
				this.page = 1;
				this.is_pull = true;
				this.isShow = true;
				this.getList();
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.withdrawalDetail_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.withdrawalDetail_fd0_0_c2_c0 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.withdrawalDetail_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.withdrawalDetail_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.withdrawalDetail_fd0_0_c0 {
		width: 180rpx;
	}

	.withdrawalDetail_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.withdrawalDetail_flex_1 {
		background: #fff;
		padding: 0rpx 30rpx 0rpx 34rpx;
		background-size: 100% auto !important;
	}

	.withdrawalDetail_fd1_1_c1_c1_c0 {
		color: rgba(255, 69, 56, 1);
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
	}

	.withdrawalDetail_fd1_0_c1_c1_c0_1 {
		color: var(--benbenFontColor7);
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
	}

	.withdrawalDetail_fd1_0_c1_c1_c0 {
		color: rgba(153, 153, 153, 1);
		font-size: 24rpx;
		font-weight: 500;
		line-height: 33rpx;
	}

	.withdrawalDetail_fd1_0_c1_c1 {
		margin: 27rpx 0rpx 0rpx 0rpx;
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #333;
	}

	.withdrawalDetail_fd1_0_c1_c0 {
		line-height: 39rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: var(--benbenFontColor0);
	}

	.withdrawalDetail_fd1_0_c0_c1 {
		margin: 24rpx 0rpx 0rpx 0rpx;
		line-height: 32rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: rgba(191, 191, 191, 1);
	}

	.withdrawalDetail_fd1_0_c0_c0_c1 {
		font-size: 30rpx;
		font-weight: 500;
	}

	.withdrawalDetail_fd1_0_c0_c0_c0 {
		width: 52rpx;
		height: 52rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.withdrawalDetail_fd1_0_c0 {
		margin: 0rpx 32rpx 0rpx 0rpx;
	}

	.withdrawalDetail_fd1_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.withdrawalDetail_fd2_0 {
		background: #ffffff;
		width: 622rpx;
		border-radius: 24rpx;
		padding: 12rpx 012rpx 012rpx 012rpx;
	}
</style>